package id.net.iconpln.bb.server.service.impl;

import id.net.iconpln.bb.server.dao.PengendalianDao;
import id.net.iconpln.bb.server.dao.ShipmentDao;
import id.net.iconpln.bb.server.service.TransportService;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(readOnly = true)
public class TransportServiceImpl implements TransportService{
	@Autowired private ShipmentDao shipmentDao;
	@Autowired private PengendalianDao pengendalianDao;
	
	@Override
	public List<Map> GetListPengendalian(String kode, Map map) {
		return pengendalianDao.GetListPengendalian(kode, map);
	}

	@Transactional(readOnly = false)
	@Override
	public List<Map> insertPengirimanBB(String kode, Map map){
		return shipmentDao.insertPengirimanBB(kode, map);
	}

	@Override
	public List<Map> getListPengiriman(String kode, Map map) {
		return shipmentDao.GetListPengiriman(kode, map);
	}

	@Override
	public List<Map> insertPengendalianBB(String kode, Map map) {
		// TODO Auto-generated method stub
		return pengendalianDao.insertPengendalianBB(kode, map);
	}

	@Override
	public List<Map> getNotulenRakor(String kode, Map map) {
		// TODO Auto-generated method stub
		return pengendalianDao.getNotulenRakor(kode, map);
	}

}
